package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


@Mapper
public interface StudentMapper  extends BaseMapper<Student>{

    @Select("select * from student")
    public List<Student> getAllStudent();


    @Select("select * from student where id = #{id}")
    public Student  getStudentById(int id);
}
